	/**
	 * 变压器 提交 、保存 流程
	 */
	function getCommitEntity(){
		return Entity;
	}
	const Entity = {
		commitData : function(that){
			//提交操作
			mui.confirm("是否提交数据",'提示',['取消','确认'],function (e) {
				if(1 == e.index){
					mui.toast("提交")
					let config = mui.neioConfig.getNeioConfig();
					let url = config.URL.submitTransOperate;
					let comData = editData(that.dataParam)
					doNet(url,that.dataParam);
				}
			},'div')
		},
		//保存操作
		saveData : function(that){
			//保存操作
			mui.confirm("是否保存数据",'提示',['取消','确认'],function (e) {
				if(1 == e.index){
					mui.toast("保存")
					let config = mui.neioConfig.getNeioConfig();
					let url = config.URL.saveOrUpdateTransOperate;
					doNet(url,that.dataParam);
				}
			},'div')
		}
	}
	
	//对提交的数据进行整理  赋值
	function editData(param){
		let data = param;
		data.transForm.status = "32";//固定32
		data.transForm.workId = that.uuidv4();
		data.transForm.workDesc = "对变压器有载调压信息进行确认"
		data.workType = "0206"
		data.infoListParam.forEach((item,position)=>{
			item.status = "32"
		})
		return data;
	}

	//网络操作
	function doNet(url,params){
		console.log("参数："+JSON.stringify(params))
		console.log("地址："+url)
		if(params.infoListParam.length == 0){
			mui.alert("请创建单据后提交");
			return;
		}
		mui.neiosRequst.httpRequst(url,params,function(ret){
			if(ret.code == 0){
				mui.toast(ret.msg)
				setTimeout(that.goBack,700);
			}
			if( ret.code == 1){
				mui.toast(ret.msg)
			}
		},function(err){
			console.log("失败回掉："+JSON.stringify(err))
		})
	}